#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
    char arr[6] = "aeiou";
    int flag1 = 0;
    int flag2 = 0;
    int count = 0;
    char words[3][4] = { "are","amy","u" };
    for (int i = 0; i <=2; i++)
    {
        int flag1 = 0;
        int flag2 = 0;
        int j = 0;
        int tmp = 0;
        int pos = strlen(words[i]);

        while (arr[j])
        {
            if (words[i][tmp] == arr[j])
            {
                flag1++;
                break;
            }
            if (words[i][pos] == arr[j])
            {
                flag2++;
                break;
            }
            j++;
        }

        if (flag1 == 1 && flag2 == 1)
        {
            count++;
        }
    }
    return count;
}












